﻿using DevExpress.Data;
using DevExpress.XtraEditors;
using DevExpress.XtraGrid;
using DXApplicationTangche.UC.抖音出入库.Service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.抖音出入库.抖音UC
{
    public partial class XtraUserControl销售收款 : DevExpress.XtraEditors.XtraUserControl
    {
        public XtraUserControl销售收款()
        {
            InitializeComponent();
        }
        public XtraUserControl销售收款(DouyinFinancialQueryFacadeDTO douyinFinancialQueryFacadeDTO)
        {
            InitializeComponent();
            this.gridControl收付款.DataSource = douyinFinancialQueryFacadeDTO.douyinFinancialSimpleDTOS;
            this.gridControl订单明细.DataSource = douyinFinancialQueryFacadeDTO.viewDouyinOrderSaleFundDTOList;
            this.gridView订单明细.GroupSummary.AddRange(new GridSummaryItem[] { new GridGroupSummaryItem(SummaryItemType.Sum, "quantity", null, "(订单数量总计= {0})"), });
            this.gridView订单明细.GroupSummary.AddRange(new GridSummaryItem[] { new GridGroupSummaryItem(SummaryItemType.Sum, "payable", null, "(订单金额总计= {0})"), });
            this.gridView收付款.RefreshData();
            this.gridView订单明细.ExpandAllGroups();
            this.gridView订单明细.RefreshData();
        }
    }
}
